<template>
	<view class="search">
		<uv-navbar leftIcon="arrow-leftward" leftIconColor="#FFF" placeholder autoBack bgColor="#161714">
			<template v-slot:right>
				<view class="search_input">
					<image src="@/static/images/1.png" class="icon"></image>
					<input type="text" placeholder="搜索名字、ID" class="input">
					<view class="btn">搜索</view>
				</view>
			</template>
		</uv-navbar>
		<view class="list">
			<view class="item" v-for="item in 9">
				<image src="@/static/test/1.jpg" class="avatar"></image>
				<view class="item_view">
					<view class="name">范闲</view>
					<view class="id">ID1234684</view>
				</view>
				<view class="btn">
					<view>添加好友</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style scoped lang="scss">
	.search {
		.search_input {
			width: 600rpx;
			height: 66rpx;
			border-radius: 33rpx;
			padding: 4rpx 4rpx 4rpx 26rpx;
			box-sizing: border-box;
			background: #2F2F2F;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.icon {
				width: 40rpx;
				height: 40rpx;
			}

			.input {
				flex: 1;
				color: #808080;
				font-size: 24rpx;
				padding-left: 8rpx;
				box-sizing: border-box;
			}

			.btn {
				width: 150rpx;
				height: 58rpx;
				line-height: 58rpx;
				text-align: center;
				color: #111111;
				font-size: 24rpx;
				border-radius: 29rpx;
				background: #DDF247;
			}
		}

		.list {
			padding: 50rpx 40rpx 0;
			box-sizing: border-box;

			.item {
				margin-bottom: 36rpx;
				display: flex;

				.avatar {
					width: 118rpx;
					height: 118rpx;
					border-radius: 50%;
				}

				.item_view {
					flex: 1;
					padding: 20rpx 30rpx;
					box-sizing: border-box;
					display: flex;
					flex-direction: column;
					justify-content: space-between;

					.name {
						color: #EEEEEE;
						font-size: 36rpx;
						font-weight: bold;
					}

					.id {
						color: #999999;
						font-size: 28rpx;
						font-weight: bold;
					}
				}

				.btn {
					display: flex;
					justify-content: center;
					align-items: center;

					view {
						width: 132rpx;
						height: 60rpx;
						line-height: 60rpx;
						text-align: center;
						color: #DDF247;
						font-size: 26rpx;
						font-weight: bold;
						border-radius: 10rpx;
						background: #2F2F2F;
					}
				}
			}
		}
	}
</style>